package com.kymatrix.mpo.plus.bpm.server.model.form.task;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.experimental.Accessors;

@ApiModel(value = "管理后台 - 回退流程任务的 Request")
@Data
@Accessors(chain=true)
public class ReturnBpmTaskReq {

    @ApiModelProperty(value = "id", example = "1024")
    @NotEmpty(message = "id不能为空")
    private String id;

    @ApiModelProperty(value = "回退到的任务 Key", example = "1")
    @NotEmpty(message = "回退到的任务 Key 不能为空")
    private String targetTaskDefinitionKey;

    @ApiModelProperty(value = "回退意见", example = "我就是想驳回")
    @NotEmpty(message = "回退意见不能为空")
    private String reason;

}
